import request from '@/api/request.js'


// 发起联盟
function launch(data){
	return request({
		url: `/v2merchant/union/launch`,
		method: 'GET',
		data
	})
}
// 联盟列表
function unionList(el,ell){
	return request({
		url: `/v2merchant/union/unionList?status=${el}&&city=${ell}`,
		method: 'GET',
	})
}
// 联盟列表(已有联盟城市)
function unionCity(){
	return request({
		url: `/v2merchant/union/unionCity`,
		method: 'GET',
	})
}
// 申请加入页面数据(联盟)列表
function account(unionid){
	return request({
		url: `/v2merchant/union/account?union_id=${unionid}`,
		method: 'GET',
	})
}
// 加入联盟
function addjoin(data){
	return request({
		url: `/v2merchant/union/join`,
		method: 'POST',
		data
	})
}
export{
	launch,unionList,unionCity,account,addjoin
}